<?php
echo 4;
function getCurrentBranch()
{
    exec("git branch", $brs);
    $curr = false;
            if (!empty($brs)) {

                foreach ($brs as $key => $br) {
                    if (strstr($br, '* ')) {
                                            $curr = trim($br, '* ');
                                                                break;
                                                            
                    }
                                
                }

                        
            }
    return $curr;
}
exec('git branch', $br);
var_dump($br);
echo $a = getCurrentBranch();
exit;
phpinfo();
echo 1;
?>
